package com.honglang.module.article.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.honglang.module.article.entity.ArticleCategories;

public interface ArticleCategoriesService {
	
	
	/**
	 * Get All the articleCategories entities;
	 * @return
	 */
	public List<ArticleCategories> getAll();
	
	
	/**
	 * save article category
	 * @param articleCategories
	 * @return
	 */
	@Transactional(readOnly = false)
	public ArticleCategories save(ArticleCategories articleCategories);
	
	/**
	 * Get the articleCategory By Id
	 * @param articleCategoryId
	 * @return
	 */
	public ArticleCategories getById(Integer articleCategoryId);

	
	/**
	 * delete ArticleCategories;
	 * @param articleCategories
	 */
	@Transactional(readOnly = false)
	public void delete(ArticleCategories articleCategories);

	/**
	 * get articleCategory by categoryname, if not exist return null;
	 * @param articleCategoryName
	 * @return
	 */
	public ArticleCategories getByCategoryName(String articleCategoryName);
	
	
	/**
	 * is articleCategories named 'articleCatetoryName' exist ? return true if it's exists ,else return false;
	 * @param articleCategoryName
	 * @return
	 */
	public boolean isCategoryNameExist(String articleCategoryName);
	
	
	
}
